package org.jeecg.modules.cosmetic.constant.enums;

/**
 * @author scx
 * @date 2022/7/27 11:47 上午
 */
public enum CosmeticTypeEnum {

    GENERAL(1,"普通"),
    SPECIAL(2,"特殊"),
    ;

    private Integer type;
    private String msg;

    CosmeticTypeEnum(Integer type, String msg) {
        this.type = type;
        this.msg = msg;
    }

    public static CosmeticTypeEnum getCosmeticTypeByType(Integer type){
        for (CosmeticTypeEnum item:CosmeticTypeEnum.values()){
            if (item.type == type){
                return item;
            }
        }
        return null;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
